﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SaveHallData : MonoBehaviour {

    public static SaveHallData Instance
    {
        get;
        private set;
    }

    public int type
    {
        get;
        private set;
    }

    public string token
    {
        get;
        private set;
    }

    public string host
    {
        get;
        private set;
    }

    public string openId
    {
        get;
        private set;
    }
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
        }
    }

    public void SetHallData(int _type, string _token, string _host, string _openId)
    {
        type = _type;
        token = _token;
        host = _host;
        openId = _openId;
    }
}
